﻿<%@ Page Title="" Language="C#" MasterPageFile="../Master/Main.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TMSPortal.Publish.Default" %>
<%@ Register Src="../UserControl/Common/UCErrorTipControl.ascx" TagName="UCErrorTipControl" TagPrefix="UC" %>
<%@ Register Src="../UserControl/UCMainTop.ascx" TagName="UCMainTop" TagPrefix="UC" %>
<%@ Register Src="../UserControl/Publish/UCPublishTabControl.ascx" TagName="UCPublishTabControl" TagPrefix="UC" %>
<%@ Import Namespace="TMS.ProjectServiceModel" %>
<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" runat="server">
    <div id="Main">
        <div class="mainTop">
            <span class="circleL"></span><span class="circleR"></span>
            <UC:UCMainTop ID="ucUCMainTop" runat="server" />
        </div>
        <div class="mainBody">
            <UC:UCPublishTabControl ID="ucTabControl" runat="server" />
            <div id="AddProject_Tab_1">
                <div class="areaBtnBar borderBottom marginBottom">
                        <a href="/Project/Pop/NewProject.aspx?Action=Create" class="buttonA" rel="facebox"><span>新建</span></a>
                </div>
                <div class="areaBody">
                    <UC:UCErrorTipControl ID="ucUCErrorTipControl" runat="server" />
                    <table class="grid" id="SearchResultTable" style="margin-top: 10px;width:98%">
                        <thead>
                            <tr class="hover">
                                <th><a><span>操作</span></a></th>
                                <th><a><span>项目编号</span></a></th>
                                <th><a><span>项目名称</span></a></th>
                                <th><a><span>测试环境</span></a></th>
                                <th><a><span>状态</span></a></th>
                                <th><a><span>上次发布时间</span></a></th>
                            </tr>
                        </thead>
                        <tbody>

                        <tr class="even">
                            <td><a href="ProjectStatus.aspx?ID=${ID}" class="buttonB btnPublish"><span>测试</span></a><a href="/Ajax/Project/Project.aspx?Action=Delete&ID=${ID}" class="buttonB" rel="ajaxAction" name="deleteProject" style="margin-left:4px;"><span>删除</span></a></td>
                            <td>${ID}</td>
                            <td>${ProjectName}</td>
                            <td>${TestEnv}</td>
                            <td>${Status}</td>
                            <td>${StrLastBuildDate}</td>
                        </tr>

                        <asp:Repeater ID="RepeaterProject" Visible="false" runat="server">
                                <ItemTemplate>
                                    <tr class="even">
                                        <td><a href="#" class="buttonB btnPublish"><span>发布</span></a><a href="/Ajax/Project/Project.aspx?Action=Delete&ID=<%# (Container.DataItem as Project).ID%>" class="buttonB" rel="saveAction" name="delete" style="margin-left:4px;"><span>删除</span></a></td>
                                        <td><%# (Container.DataItem as Project).ID%></td>
                                        <td><%# (Container.DataItem as Project).ProjectName%></td>
                                        <td><%# (Container.DataItem as Project).TestEnv%></td>
                                        <td><%# (Container.DataItem as Project).Status%></td>
                                        <td><%# (Container.DataItem as Project).LastBuildDate.ToString("yyyy-MM-dd HH:mm:ss")%></td>
                                    </tr>
                                    </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="mainBottom">
            <span class="circleL"></span><span class="circleR"></span>
        </div>
    </div>
</asp:Content>

<asp:Content ID="Script" runat="server" ContentPlaceHolderID="ScriptArea">
<script type="text/javascript" src="/script/biz/Project.js"></script>
</asp:Content>
